package cn.boat.router.models;

import lombok.Data;

import java.util.List;

@Data
public class Topic {
    private String topicName;
    private Integer partitionNum;
    private List<Partition> partitionList;

    public Topic() {
    }

    public Topic(String topicName, Integer partitionNum, List<Partition> partitionList) {
        this.topicName = topicName;
        this.partitionNum = partitionNum;
        this.partitionList = partitionList;
    }

    public String getTopicName() {
        return topicName;
    }

    public void setTopicName(String topicName) {
        this.topicName = topicName;
    }

    public Integer getPartitionNum() {
        return partitionNum;
    }

    public void setPartitionNum(Integer partitionNum) {
        this.partitionNum = partitionNum;
    }

    public List<Partition> getPartitionList() {
        return partitionList;
    }

    public void setPartitionList(List<Partition> partitionList) {
        this.partitionList = partitionList;
    }
}
